<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>告警</title>
    <link rel="stylesheet" href="../../public/css/weui.css"/>
    <script src="../../public/js/display.js"></script>
    <!-- 自适应移动端 -->
    <meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
</head>
<body>

<div class="weui-navbar">
    <div class="weui-navbar__item">
        设备告警
    </div>
</div>

<!-- <div class="weui-grid"> -->
    <a href="" class="weui-grid">
        <div class="weui-grid__icon">
            <div id="err0"></div>
            <script type="text/javascript">
                if (errorInfo.inner_sensor_err === 0) {
                    document.getElementById("err0").innerHTML=statusPic.good;
                } else {
                    document.getElementById("err0").innerHTML=statusPic.err;
                }
            </script>
        </div>
        <p class="weui-grid__label">内部传感器</p>
        <p class="weui-grid__label">故障</p>
    </a>
    <a href="" class="weui-grid">
        <div class="weui-grid__icon">
            <div id="err1"></div>
            <script type="text/javascript">
                if (errorInfo.inner_sensor_temp_alarm === 0) {
                    document.getElementById("err1").innerHTML=statusPic.good;
                } else {
                    document.getElementById("err1").innerHTML=statusPic.err;
                }
            </script>
        </div>
        <p class="weui-grid__label">内部传感器</p>
        <p class="weui-grid__label">温度报警</p>
    </a>
    <a href="" class="weui-grid">
        <div class="weui-grid__icon">
            <div id="err2"></div>
            <script type="text/javascript">
                if (errorInfo.external_sensor_err === 0) {
                    document.getElementById("err2").innerHTML=statusPic.good;
                } else {
                    document.getElementById("err2").innerHTML=statusPic.err;
                }
            </script>
        </div>
        <p class="weui-grid__label">外部传感器</p>
        <p class="weui-grid__label">故障</p>
    </a>
    <a href="" class="weui-grid">
        <div class="weui-grid__icon">
            <div id="err3"></div>
            <script type="text/javascript">
                if (errorInfo.external_sensor_over_temp === 0) {
                    document.getElementById("err3").innerHTML=statusPic.good;
                } else {
                    document.getElementById("err3").innerHTML=statusPic.err;
                }
            </script>
        </div>
        <p class="weui-grid__label">外部传感器</p>
        <p class="weui-grid__label">超温</p>
    </a>
    <a href="" class="weui-grid">
        <div class="weui-grid__icon">
            <div id="err4"></div>
            <script type="text/javascript">
                if (errorInfo.mechanical_limit_temp_over_temp === 0) {
                    document.getElementById("err4").innerHTML=statusPic.good;
                } else {
                    document.getElementById("err4").innerHTML=statusPic.err;
                }
            </script>
        </div>
        <p class="weui-grid__label">机械限温</p>
        <p class="weui-grid__label">超温</p>
    </a>
    <a href="" class="weui-grid">
        <div class="weui-grid__icon">
            <div id="err5"></div>
            <script type="text/javascript">
                if (errorInfo.mechanical_limit_sensor_err === 0) {
                    document.getElementById("err5").innerHTML=statusPic.good;
                } else {
                    document.getElementById("err5").innerHTML=statusPic.err;
                }
            </script>
        </div>
        <p class="weui-grid__label">机械限温</p>
        <p class="weui-grid__label">故障</p>
    </a>
    <a href="" class="weui-grid">
        <div class="weui-grid__icon">
            <div id="err6"></div>
            <script type="text/javascript">
                if (errorInfo.motor_stalling === 0) {
                    document.getElementById("err6").innerHTML=statusPic.good;
                } else {
                    document.getElementById("err6").innerHTML=statusPic.err;
                }
            </script>
        </div>
        <p class="weui-grid__label">电机堵转</p>
        <p class="weui-grid__label"> &nbsp</p>
    </a>
    <a href="" class="weui-grid">
        <div class="weui-grid__icon">
            <div id="err7"></div>
            <script type="text/javascript">
                if (errorInfo.external_sensor_drop === 0) {
                    document.getElementById("err7").innerHTML=statusPic.good;
                } else {
                    document.getElementById("err7").innerHTML=statusPic.err;
                }
            </script>
        </div>
        <p class="weui-grid__label">外部传感器</p>
        <p class="weui-grid__label">跌落</p>
    </a>
    <a href="" class="weui-grid">
        <div class="weui-grid__icon">
            <div id="err9"></div>
            <script type="text/javascript">
                if (errorInfo.external_sensor_not_plugged === 0) {
                    document.getElementById("err9").innerHTML=statusPic.good;
                } else {
                    document.getElementById("err9").innerHTML=statusPic.err;
                }
            </script>
        </div>
        <p class="weui-grid__label">外部传感器</p>
        <p class="weui-grid__label">未插入</p>
    </a>
    <a href="" class="weui-grid">
        <div class="weui-grid__icon">
            <div id="err8"></div>
            <script type="text/javascript">
                if (errorInfo.end_of_time === 0) {
                    document.getElementById("err8").innerHTML=statusPic.good;
                } else {
                    document.getElementById("err8").innerHTML=statusPic.err;
                }
            </script>
        </div>
        <p class="weui-grid__label">超时告警</p>
        <p class="weui-grid__label">&nbsp</p>
    </a>
<!-- </div> -->

</body>
</html>